#pragma once

#include "MyEdit.h"
#include "MyCombo.h"
// CListCtlModify

enum{
	EDIT = 1,
	SENSORTYPE,
	SENSORPOWER,
	STARTRUN,
	ONSITE,
};

class CPcParamDialog;
class CListCtlModify : public CListCtrl
{
	DECLARE_DYNAMIC(CListCtlModify)

public:
	CListCtlModify();
	virtual ~CListCtlModify();
	CPcParamDialog* pDlg;
	virtual void OnFinalRelease();
	
	char  strText[10];		//add here to m_OnSite wfg
	CMyEdit m_edit;
 	CMyCombo m_SensorTp;
 	CMyCombo m_SendPowr;
 	CMyCombo m_StartRun;
	CMyCombo m_OnSite;
	CString m_SelText;

protected:
	DECLARE_MESSAGE_MAP()
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
public:
//	afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult);
//	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);

	int click_column;
	int click_row;
	afx_msg void OnLvnEndScroll(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLvnKeydown(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMReturn(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg LRESULT OnDataModify(WPARAM wParam, LPARAM lParam);
	void SetEditPos(BOOL down);
	
protected:
	int editlinenumber;
};


